<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons/jsp/taglibs.jsp"%>
<%@taglib uri="http://www.framework.com/taglib" prefix="frame"%>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<div class="easyui-panel" data-options="border:false" style="padding: 6px">
<c:choose>
	<c:when test="${loginUserType == '2' }">
		<c:if test="${not empty his}">
	<div class="easyui-panel" data-options="border:true,title:'首次评价'" style="padding:6px;margin-bottom: 6px">
	<table class="infoTable" style="margin-top: 0px;width:100%">
		<tbody>
			<tr>
				<th align="right" width="17%">商品描述</th>
					<td width="83%">
					<span >
						<c:forEach var="t" begin="1" end="${his.description}">
							<img src="${ctx}/commons/images/evalueate/T1e.png"/>
						</c:forEach>
						<c:if test="${his.description < 5}">
							<c:forEach begin="1" end="${5-his.description}">
								<img src="${ctx}/commons/images/evalueate/T1j.png"/>
							</c:forEach>
						</c:if>
					</span>
				</td>
			</tr>
			<tr>
				<th align="right" width="15%">服务态度</th>
					<td width="35%">
						<span >
							<c:forEach var="t" begin="1" end="${his.attitude}">
								<img src="${ctx}/commons/images/evalueate/T1e.png"/>
							</c:forEach>
							<c:if test="${his.attitude < 5}">
								<c:forEach begin="1" end="${5-his.attitude}">
									<img src="${ctx}/commons/images/evalueate/T1j.png"/>
								</c:forEach>
							</c:if>
						</span>
					</td>
			</tr>
			<tr>
				<th align="right" width="15%">发货速度</th>
					<td width="35%">
						<span >
							<c:forEach var="t" begin="1" end="${his.speed}">
								<img src="${ctx}/commons/images/evalueate/T1e.png"/>
							</c:forEach>
							<c:if test="${his.speed < 5}">
								<c:forEach begin="1" end="${5-his.speed}">
									<img src="${ctx}/commons/images/evalueate/T1j.png"/>
								</c:forEach>
							</c:if>
						</span>
					</td>
			</tr>
			<tr>
				<td align="right" width="15%">评价内容</td>
				<td width="35%">
					${his.content}
				</td>
			</tr>
		</tbody>
	</table>
</div>
</c:if>
<c:if test="${not empty eval}">
	<div class="easyui-panel" data-options="border:true,title:'追加评价'" style="padding:6px;">
		<form action="${ctx }/business/order/saveEvalueate" method="post" name ="addDataForm" id="addGoodsEvalueateForm">
	<input type="hidden" name="goodsId" value="${param.userId}"/>
	<input type="hidden" name="orderId" value="${param.orderId}"/>
	<table class="infoTable" style="margin-top: 0px;width:100%">
		<tbody>
			<tr>
				<th align="right" width="17%">商品描述</th>
					<td width="83%">
					<span >
						<c:forEach var="t" begin="1" end="${eval.description}">
							<img src="${ctx}/commons/images/evalueate/T1e.png"/>
						</c:forEach>
						<c:if test="${eval.description < 5}">
							<c:forEach begin="1" end="${5-eval.description}">
								<img src="${ctx}/commons/images/evalueate/T1j.png"/>
							</c:forEach>
						</c:if>
					</span>
				</td>
			</tr>
			<tr>
				<th align="right" width="15%">服务态度</th>
					<td width="35%">
					<span >
							<c:forEach var="t" begin="1" end="${eval.attitude}">
								<img src="${ctx}/commons/images/evalueate/T1e.png"/>
							</c:forEach>
							<c:if test="${eval.attitude < 5}">
								<c:forEach begin="1" end="${5-eval.attitude}">
									<img src="${ctx}/commons/images/evalueate/T1j.png"/>
								</c:forEach>
							</c:if>
						</span>
				</td>
			</tr>
			<tr>
					<th align="right" width="15%">发货速度</th>
						<td width="35%">
						<span >
							<c:forEach var="t" begin="1" end="${eval.speed}">
								<img src="${ctx}/commons/images/evalueate/T1e.png"/>
							</c:forEach>
							<c:if test="${eval.speed < 5}">
								<c:forEach begin="1" end="${5-eval.speed}">
									<img src="${ctx}/commons/images/evalueate/T1j.png"/>
								</c:forEach>
							</c:if>
						</span>
					</td>
				</tr>
			<tr>
				<td align="right" width="15%">评价内容</td>
				<td width="35%">
					${eval.content}
				</td>
			</tr>
		</tbody>
	</table>
</form>
	</div>
	</c:if>
	</c:when>
	
	
	<c:when test="${loginUserType == '1'}">
	<c:if test="${not empty his}">
	<div class="easyui-panel" data-options="border:true,title:'首次评价'" style="padding:10px;">
	<table class="infoTable" style="margin-top: 0px;width:100%">
		<tbody>
			<tr>
				<th align="right" width="17%">买方诚信</th>
					<td width="83%">
					<span >
						<c:forEach var="t" begin="1" end="${his.description}">
							<img src="${ctx}/commons/images/evalueate/T1e.png"/>
						</c:forEach>
						<c:if test="${his.description < 5}">
							<c:forEach begin="1" end="${5-his.description}">
								<img src="${ctx}/commons/images/evalueate/T1j.png"/>
							</c:forEach>
						</c:if>
					</span>
				</td>
			</tr>
			<tr>
				<td align="right" width="15%">评价内容</td>
				<td width="35%">
					${his.content}
				</td>
			</tr>
		</tbody>
	</table>
</div>
</c:if>
<c:if test="${not empty eval}">
	<div class="easyui-panel" data-options="border:true,title:'追加评价'" style="padding:6px;">
		<form action="${ctx }/business/order/saveEvalueate" method="post" name ="addDataForm" id="addGoodsEvalueateForm">
	<input type="hidden" name="goodsId" value="${param.userId}"/>
	<input type="hidden" name="orderId" value="${param.orderId}"/>
	<table class="infoTable" style="margin-top: 0px;width:100%">
		<tbody>
			<tr>
				<th align="right" width="17%">买方诚信</th>
					<td width="83%">
					<span >
						<c:forEach var="t" begin="1" end="${eval.description}">
							<img src="${ctx}/commons/images/evalueate/T1e.png"/>
						</c:forEach>
						<c:if test="${eval.description < 5}">
							<c:forEach begin="1" end="${5-eval.description}">
								<img src="${ctx}/commons/images/evalueate/T1j.png"/>
							</c:forEach>
						</c:if>
					</span>
				</td>
			</tr>
			<tr>
				<td align="right" width="15%">评价内容</td>
				<td width="35%">
					${eval.content}
				</td>
			</tr>
		</tbody>
	</table>
</form>
	</div>
	</c:if>
	</c:when>
</c:choose>
</div>
<script type="text/javascript">
</script>